class Vehicle{
    double speed;
    int power;
    public Vehicle(double m,int n){
        this.speed=m;
        this.power=n;
    }
    public void speedUp(int s){
        this.speed=s;
        System.out.println("机动车将速度加到"+this.speed+"m/s");
    }
    public void speedDown(){
        System.out.println("机动车正在减速");
    }
    public double getSpeed() {
        return speed;
    }
    public void setPower(int x){
        this.power=x;
    }
    public int getPower() {
        return power;
    }
}
public class User{
    public static void main(String[] args) {
        Vehicle car=new Vehicle(10.0,100);
        car.setPower(200);
        System.out.println("机动车此时功率为"+car.getPower()+"w");
        car.speedUp(20);
        System.out.println("机动车此时速度为"+car.getSpeed()+"m/s");
        car.speedDown();
    }
}